package shiwenhui.com.taotao.search.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import shiwenhui.com.taotao.common.pojo.TaotaoResult;
import shiwenhui.com.taotao.search.service.ItemService;

/**
 * @author 施子安
 * @create * 索引库维护
 * * <p>Title: ItemController</p>
 * * <p>Description: </p>
 * * <p>Company: www.itcast.com</p>
 * * @author	入云龙
 * * @date	2015年9月11日下午2:50:45
 * * @version 1.0
 */


@Controller
@RequestMapping("/manager")
public class ItemController {

    @Autowired
    private ItemService itemService;

    /**
     * 导入商品数据到索引库
     */
    @RequestMapping("/importall")
    @ResponseBody
    public TaotaoResult importAllItems() {
        TaotaoResult result = itemService.importAllItems();
        return result;
    }
}
